import request from "../utils/request";

export function getDataList(){
    return request({
        url:'/dataInfo/getDataInfo',
        method:'get'
    })
}

export function getTripList(params){
    return request({
        url:`/tripInfo/getTripListByUserId?pageSize=${params.pageSize}&pageNum=${params.pageNum}&userId=${params.userId}`,
        method:'get'
    })
}

export function getUserInfo(id){
    return request({
        url:`/user/getUserInfoById/${id}`,
        method:'get'
    })
}